home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / 5_memchk.zip / M.BAT < prev    next >
DOS Batch File  |  1991-07-16  |  2KB  |  55 lines

  1. @echo off
  2. cls
  3. REM  Set screen colors to bright yellow on blue.
  4. echo 
  5. cls
  6. C:
  7. REM Edit the "REM" out of next line for separate directory in your Path statement
  8. REM cd \BIN
  9. C:\DOS\Mem /C | C:\DOS\More
  10. REM  Set colors to normal grey on black
  11. echo 
  12. REM  Insert a blank line, "echo <Alt-255>"
  13. echo  
  14. echo  Do you want this saved to a file, Y/ N 
  15. Keypress yn
  16. If errorlevel 2 goto NO
  17. If errorlevel 1 goto YES
  18. REM  Quit if any other key was pressed.
  19. goto NO
  20.     :YES
  21. Input Memory.mnu Memory.tpl C:\Save#9.bat
  22. Copy C:\Save#9.bat C:\Save#9.#9# >nul
  23. REM  If Save#9.bat was 0-length DOS did not copy it, so Save#9.#9# doesn't exist
  24. If not exist C:\Save#9.#9# goto NO
  25.  
  26. REM  Move the cursor up to overwrite last prompt message.
  27. echo A
  28. REM  Reset screen colors to black on cyan and "erase" prompt with line of spaces
  29. echo                                                                                 
  30. REM  Insert another blank line
  31. echo  
  32. REM  Move the cursor up five lines to position exit message.
  33. echo A
  34. echo 22H┌───────────────────────────────────┐
  35. echo 22H  Memory check saved to file with  
  36. echo 22H  contents of your Config.sys and  
  37. echo 22H  Autoexec.bat files.              
  38. echo 22H└───────────────────────────────────┘
  39. Call C:\Save#9
  40. del C:\Save#9.*
  41. echo  
  42. echo  Would you like to review any saved files now, Y/ N 
  43. Keypress yn
  44. If errorlevel 2 goto NO
  45. If errorlevel 1 goto SEEFILES
  46. REM  Quit if any other key was pressed.
  47. goto NO
  48.     :SEEFILES
  49. Filectrl C:\Memory*.*
  50.     :NO
  51. REM  Move the cursor up to overwrite last prompt message.
  52. echo A
  53. REM  Reset screen colors to black on cyan and "erase" prompt.
  54. echo                                                                                 
  55.     :END